package entity;

import java.util.Map;

/**
 * 
 * class that represents a node
 * 
 */
public class Node {

	/**
	 * Subject of the node
	 */
	private String subject;

	/**
	 * Edge of the node
	 */
	private String edge;

	/**
	 * Not linked object.
	 */
	private String defaultObject;

	/**
	 * Object linked.
	 */
	private Node objectLinked;

	public String getDefaultObject() {
		return defaultObject;
	}

	public void setDefaultObject(String defaultObject) {
		this.defaultObject = defaultObject;
	}

	public Node getObjectLinked() {
		return objectLinked;
	}

	public void setObjectLinked(Node objectLinked) {
		this.objectLinked = objectLinked;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getEdge() {
		return edge;
	}

	public void setEdge(String edge) {
		this.edge = edge;
	}

	public boolean checkIfGetObjectLinkedIsNull(Node objectLinked) {

		if (objectLinked == null)
			return false;

		// object not null
		return true;
	}

}
